//
//  navigationItemTitleView.m
//  DayAndDayLottery
//
//  Created by dengzhiping on 2017/6/3.
//  Copyright © 2017年 dengzhiping. All rights reserved.
//

#import "NavigationItemTitleView.h"

@implementation NavigationItemTitleView

+ (NavigationItemTitleView *)initNavigationItemTitleViewFromXib{
    NSArray *arr = [[NSBundle mainBundle] loadNibNamed:@"NavigationItemTitleView" owner:self options:nil];
    
    return [arr firstObject];
}

- (void)viewWithButtonTitle:(NSString *)title{
    [self.typeButton setTitle:title forState:0];
}
- (IBAction)chooseTypeLottery:(UIButton *)sender {
    if (self.block) {
        self.block();
        NSLog(@"选择彩票类型");
    }
}

@end
